home *** CD-ROM | disk | FTP | other *** search
/ How Would You Survive? / How Would You Survive (1995)(Grolier)[Mac-PC].iso / mac / AZTECW.DIR / 01703_Script_Clothes < prev    next >
Text File  |  1995-09-12  |  4KB  |  157 lines

  1. global gQuest, gBeenClicked
  2.  
  3. on AClothesRollovers1
  4.   set gBeenClicked = 0
  5.   if (not(CheckClickedStatus(gQuest))) then
  6.     if rollover(13) then
  7.       repeat while rollover(13)
  8.         AztecCursor
  9.         puppetsprite 43, true
  10.         set the locH of sprite 43 to 113
  11.         set the locV of sprite 43 to 277
  12.         updatestage
  13.         if the mousedown then
  14.           set GBeenClicked = 1
  15.         else
  16.           if gBeenClicked = 1 then
  17.             repeat while gBeenClicked = 1
  18.               AnimateLoopFast 6, 537, 5, "SA241101.AIF", 2
  19.             end repeat
  20.           end if
  21.         end if
  22.       end repeat
  23.       set the locH of sprite 43 to 913
  24.       puppetsprite 43, false
  25.       updatestage
  26.     else
  27.       if rollover(7) then
  28.         ArrowCursor
  29.         repeat while rollover(7)
  30.           set the locH of sprite 14 to 350
  31.           set the locV of sprite 14 to 118
  32.           updatestage
  33.         end repeat
  34.       else
  35.         if rollover(11) then
  36.           repeat while rollover(11)
  37.             AztecCursor
  38.             set the locH of sprite 12 to 237
  39.             set the locV of sprite 12 to 302
  40.             updatestage
  41.             if the mousedown then
  42.               puppetsound "SA241000.AIF"
  43.             end if
  44.           end repeat
  45.           set the locH of sprite 12 to 937
  46.           updatestage
  47.         else
  48.           if the mousecast = the castnum of sprite 9 then
  49.             ArrowCursor
  50.             repeat while the mousecast = the castnum of sprite 9 or rollover(10)
  51.               set the locH of sprite 10 to 356
  52.               set the locV of sprite 10 to 201
  53.               updatestage
  54.             end repeat
  55.           else
  56.             if rollover(40) then
  57.               HandCursor
  58.             else
  59.               if rollover(41) then
  60.                 HandCursor
  61.               else
  62.                 if rollover(42) then
  63.                   HandCursor
  64.                 else
  65.                   ArrowCursor
  66.                 end if
  67.               end if
  68.             end if
  69.           end if
  70.         end if
  71.       end if
  72.     end if
  73.   end if
  74.   RandomQuestion(gQuest)
  75. end
  76.  
  77. on AClothesRollovers2
  78.   set gBeenClicked = 0
  79.   if (not(CheckClickedStatus(gQuest))) then
  80.     if rollover(6) then
  81.       repeat while rollover(6)
  82.         AztecCursor
  83.         puppetsprite 16, true
  84.         set the locH of sprite 16 to 505
  85.         set the locV of sprite 16 to 284
  86.         updatestage
  87.         if the mousedown then
  88.           set GBeenClicked = 1
  89.         else
  90.           if gBeenClicked = 1 then
  91.             repeat while gBeenClicked = 1
  92.               AnimateLoopToFro 6, 546, 2, "SA240500.AIF", 4
  93.             end repeat
  94.           end if
  95.         end if
  96.       end repeat
  97.       set the locH of sprite 16 to 905
  98.       puppetsprite 16, false
  99.       updatestage
  100.     else
  101.       if rollover(7) then
  102.         ArrowCursor
  103.         repeat while rollover(7)
  104.           set the locH of sprite 8 to 422
  105.           set the locV of sprite 8 to 179
  106.           updatestage
  107.         end repeat
  108.       else
  109.         if rollover(9) then
  110.           ArrowCursor
  111.           repeat while rollover(9)
  112.             set the locH of sprite 10 to 407
  113.             set the locV of sprite 10 to 306
  114.             updatestage
  115.           end repeat
  116.           set the locH of sprite 10 to 907
  117.           updatestage
  118.         else
  119.           if rollover(11) then
  120.             ArrowCursor
  121.             repeat while rollover(11)
  122.               set the locH of sprite 12 to 319
  123.               set the locV of sprite 12 to 106
  124.               updatestage
  125.             end repeat
  126.           else
  127.             if rollover(13) then
  128.               ArrowCursor
  129.               repeat while rollover(13)
  130.                 set the locH of sprite 14 to 260
  131.                 set the locV of sprite 14 to 323
  132.                 updatestage
  133.               end repeat
  134.               set the locH of sprite 14 to 960
  135.               updatestage
  136.             else
  137.               if rollover(39) then
  138.                 HandCursor
  139.               else
  140.                 if rollover(41) then
  141.                   HandCursor
  142.                 else
  143.                   if rollover(42) then
  144.                     HandCursor
  145.                   else
  146.                     ArrowCursor
  147.                   end if
  148.                 end if
  149.               end if
  150.             end if
  151.           end if
  152.         end if
  153.       end if
  154.     end if
  155.   end if
  156.   RandomQuestion(gQuest)
  157. end